package GUI;

import javax.swing.*;
import Database.*;

import java.awt.Color;
import java.util.*;
import Application.*;


public class GUIStart extends JFrame
{
	private static final long serialVersionUID = 1L;
	private JFrame fenster;
	private MySQLConnectionKunden test;
	
	private ArrayList<Kunde> customer = new ArrayList<Kunde>() ;

    public GUIStart(MySQLConnectionKunden test)
    {
    	this.test = test;
    	customer = test.getCustomerArray();
        fenster = new JFrame("Tomkai Auftragsverwaltung");
        fenster.setSize(1200,800);
        fenster.setLocation(100,100);
        fenster.getContentPane().setBackground(new Color (202,255,112));
        fenster.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        String test2 = customer.get(0).getName();
        fenster.getContentPane().add(new JTextField(test2, 3));
        fenster.setVisible(true);
        
        
        //customer = new ArrayList<Kunde>();
        //customer = test.getCustomerArray();
        
    }
}
